<?php
/**
 * 网春主持人和拜年对象选择
 */
require_once dirname(dirname(__DIR__))."/common.php";
use app\cls\tom\Response;
use app\cls\tom\SysResource;
use app\cls\tom\Tools;
use app\cls\tom\Config;
use app\model\Activity;


$db = SysResource::getDB(false);
$Activity=new Activity($db);
//查询所有的主持人
$host=$Activity->host();
//查询所有拜年对象
$select_person=$Activity->select_person();
if(empty($host)){
    $host=[];
}
if(empty($select_person)){
    $select_person=[];
}
Response::output(0,"查询成功",$host,$select_person);

